package com.example.countdown;

import android.content.res.Resources;
import android.util.TypedValue;

public class Constant {
    private static Resources resources=null;


    public static void setResources(Resources res ) {
        resources = res ;
    }


    public static int getValue(int id) {
        TypedValue outValue=new TypedValue();
        resources.getValue(id,outValue,true);
        int value= (int) outValue.getFloat();
        return value;
    }
}
